#!/bin/bash

pwd=$(pwd)
make clean distclean
tar zcf temp.tgz *
scp -r temp.tgz ra071646@ssh.students.ic.unicamp.br:
rm temp.tgz
ssh ra071646@ssh.students.ic.unicamp.br 'cd ~/mc723/arp;rm -rf *;mv ~/temp.tgz ~/mc723/arp;tar zxf temp.tgz;pwd=$(pwd);make clean distclean;cd processors/mips1;~rodolfo/mc723/archc/bin/acsim mips1.ac -abi;make -f Makefile.archc;cd ${pwd};make run'
